package ex.mlist;

import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;



public class Schedule_service extends BroadcastReceiver{

	private AlertDialog.Builder builder;
	private AlertDialog alert;
	@Override
	 public void onReceive(Context context, Intent intent) {
		
			Bundle b=intent.getExtras();
			int end=b.getInt("end");
			
			Intent i = new Intent(context,Changetone.class);
			
		if(end==0)
		{
		 
		 i.putExtra("ringtone_src", b.getString("ringtone_src"));
		 i.putExtra("size", b.getInt("size"));
		
		 i.putExtra("settone",1);
		 
		}
		
		else
		{
			i.putExtra("settone",0);
		}
		i.putExtra("profile_id", b.getInt("profile_id"));
		i.putExtra("number", b.getInt("number"));
		i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		 context.startActivity(i);
		
			
			

	

		
	}
}
